package events

import (
	"github.com/boticord/backend/notifications/app"
	"github.com/gorilla/websocket"
	"go.uber.org/fx"
)

func newConnectEvent() fx.Option {
	return fx.Module("ConnectEvent", fx.Invoke(func(em *app.Emitter) {
		em.OnConnection(func(c *websocket.Conn, id string) {
//			app.Emit(c, "hello", struct {
//				ID string `json:"id"`
//			}{
//				ID: id,
//			})
		})
	}))
}
